<include file="public@header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('admin/task/index')}">列表</a></li>
		<li class="active"><a>编辑</a></li>
	</ul>
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('admin/task/edit')}">
		<input type="hidden" name="lang_id" value="{$data['lang_id']}">
		<input type="hidden" name="id" value="{$data['id']}">

		<div class="form-group">
			<label for="task_group" class="col-sm-2 control-label"><span class="form-required">*</span>分组名称</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" name="task_group" id="task_group" class="form-control" value="{$data['task_group']}" />
			</div>
		</div>

		<div class="form-group">
			<label for="task_group_cn" class="col-sm-2 control-label"><span class="form-required">*</span>分组中文名称</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" name="task_group_cn" id="task_group_cn" class="form-control" value="{$data['task_group_cn']}" />
			</div>
		</div>

		<div class="form-group">
			<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务类型</label>
			<div class="col-md-6 col-sm-10">
				<select class="form-control" name="task_type" id="task_type">
					<foreach name="taskTypeData" item="type">
						<option value="{$type['type']}" <if condition="$type['type'] == $data['task_type']"> selected </if>  >{$type['name']}</option>
					</foreach>
				</select>
			</div>
		</div>

		<div class="form-group">
			<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务标题</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" name="title" id="title" class="form-control" value="{$data['title']}" />
			</div>
		</div>

		<div class="form-group">
			<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务说明</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" name="task_intro" id="task_intro" class="form-control" value="{$data['task_intro']}" />
			</div>
		</div>

		<div class="form-group">
			<label for="title" class="col-sm-2 control-label"><span class="form-required">*</span>任务说明(中文)</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" name="task_intro_cn" id="task_intro_cn" class="form-control" value="{$data['task_intro_cn']}" />
			</div>
		</div>

		<div class="form-group">
			<label for="complete_count" class="col-sm-2 control-label"><span class="form-required">*</span>任务条件</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" name="complete_count" id="complete_count" class="form-control" value="{$data['complete_count']}" />
			</div>
		</div>

		<div class="form-group">
			<label for="award" class="col-sm-2 control-label"><span class="form-required">*</span>任务奖励</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" name="award" id="award" class="form-control" value="{$data['award']}" style="width: 90%;display: inline" /> 钻石
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>是否开启</label>
			<div class="col-md-6 col-sm-10">
				<select name="status" id="status" class="form-control">
					<option value="1">是</option>
					<option value="0" <if condition="$data['status'] == 0"> selected </if> >否</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
</body>
</html>